#!/usr/bin/env python
# -*- encoding: utf-8 -*-


# group schema
{
    'group': {
        'group_keyword': str,  # new, not changeable
        'resultid': str,  # new, not changeable
        'url': str,  # new, not changeable
        'title': str,  # new, not changeable
        'project': str,  # new, not changeable
        'date': str,  # new, not changeable
    }
}


class GroupDB(object):
    """
    database for group
    """
    projects = set()  # projects in groupdb

    def insert_group(self, group_keyword, resultid, title, url, project, date):
        raise NotImplementedError

    def drop(self, project):
        raise NotImplementedError